<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
  <div th:replace="~{/fragment/header :: header-nav}"></div>
  <div th:replace="~{/fragment/header :: header}"></div>

  <div th:replace="~{/fragment/header :: header-css}"></div>

</head>
<body>

<div class="container">
  <table class="table table-danger">
    <a th:href="@{/pricing/insert}" class="btn btn-success">新增</a>
    <thead>
    <tr>
      <th scope="row">序号</th>
      <th>每小时价格</th>
      <th>每天价格</th>
      <th>超过多少小时按天计费</th>
      <th>更新日期</th>
      <th></th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="pricing : ${list}">
      <td th:text="${pricing.id}"></td>
      <td th:text="${pricing.hourlyRate}"></td>
      <td th:text="${pricing.dailyRate}"></td>
      <td th:text="${pricing.exceedingHours}"></td>
      <td th:text="${#dates.format(pricing.updateTime,'yyyy-MM-dd HH:mm:ss')}"></td>
      <td>
        <a th:href="@{/pricing/edit/{id}(id=${pricing.id})}" class="btn btn-info">修改</a>
        <a th:href="@{/pricing/detail/{id}(id=${pricing.id})}">详情</a>
        <a th:href="@{/pricing/delete/{id}(id=${pricing.id})}" class="btn btn-danger">删除</a>
      </td>
    </tr>
    </tbody>
  </table>
</div>

<div th:replace="~{/fragment/footer :: footer}"></div>
<div th:replace="~{/fragment/header :: header-js}"></div>
</body>
</html>